﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace editor
{
    class Node
    {
        private Point _point;
        private double _color;
        public Node(int x, int y, double color)
        {
            _point = new Point(x, y);

            if (color < 0)
            {
                _color = 0;
            }
            else if (color> 100)
            {
                _color = 100; 
            }
            else
            {
                _color = color;
            }
            
        }

        public int GetX()
        {
            return (int)_point.X;
        }
        public int GetY()
        {
            return (int)_point.Y;
        }
        public double GetColor()
        {
            return _color;
        }
    }
}
